#include "stdafx.h"
#include "LoginManager.h"



LoginManager::LoginManager()
{
}


LoginManager::~LoginManager()
{
}

void LoginManager::AddGMUserInfo(char * UserID, char * Pwd)
{
	m_GMUserInfo[UserID] = Pwd;
}

BOOL LoginManager::IsGmUser(char * UserID, char * Pwd)
{
	std::map<std::string, std::string>::iterator iter;
	iter = m_GMUserInfo.find(UserID);
	if (iter != m_GMUserInfo.end())
	{
		if (iter->second == Pwd)
			return TRUE;
	}
	return FALSE;
}
